# 发送短信验证码
from rest_framework.decorators import api_view
from rest_framework.response import Response


@api_view(['GET'])
def api_sendSMS(request):
    # serializer = GetTokenRequest(data=request.data)
    #     print("sendSMSserializer",serializer)
    print("api_sendSMS")
    try:
        # PhoneNumbers = request.GET.get('PhoneNumbers', '')
        # data = {
        #     "method": SEND_SMS_METHOD,
        #     "appid": APP_ID,
        #     "masterAcc": PhoneNumbers,
        # }
        # send_sms_code(data)
        resp = {"code": 40002, "flag": False, "message": '该手机号码无参评项，请核对！'}
    except Exception as e:
        print(e)
    return Response(resp)